package cn.dinxian.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T> {

    private Integer code;
    private String message;
    private T data;

    public CommonResult(int i, String s) {
        this.code =i;
        this.message=s;
    }
    public CommonResult(int i, String s,T data) {
        this.code =i;
        this.message=s;
        this.data=data;
    }

}
